home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 342_01.zip / I8255F07.C < prev    next >
C/C++ Source or Header  |  1993-04-03  |  1KB  |  42 lines

  1. /*-
  2.  *  ----------------------------------------------------------------------
  3.  *  File        :   I8255F07.C
  4.  *  Creator     :   Blake Miller
  5.  *  Version     :   01.00.00        February 1991
  6.  *  Language    :   Microsoft C     Version 5.1
  7.  *  Purpose     :   Intel 8255 Compatible Digital IO Functions
  8.  *              :   Write All Bytes
  9.  *  ----------------------------------------------------------------------
  10.  */
  11.  
  12. #define  I8255F07_C_DEFINED  1
  13. #include "I8255FN.H"
  14. #undef   I8255F07_C_DEFINED
  15.  
  16. void I8255_dump_bytes (I8255DAT *data);
  17.  
  18. /*- I8255 : Dump Bytes -----------------------**
  19.  *  Write all of the bytes from the data area to the 8255.
  20.  *  Passed:
  21.  *      pointer :   I8255DAT
  22.  *  Returns:
  23.  *      nothing
  24.  */
  25. void I8255_dump_bytes (I8255DAT *data)
  26.     {
  27.     /* Port A data */
  28.     chp_portwt ( I8255_PORTA(data->base), data->adat );
  29.     /* Port B data */
  30.     chp_portwt ( I8255_PORTB(data->base), data->bdat );
  31.     /* Port C data */
  32.     chp_portwt ( I8255_PORTC(data->base), data->cdat );
  33.  
  34.     data->stat = I8255_ST_OK;
  35.     }
  36.  
  37. /*-
  38.  *  ----------------------------------------------------------------------
  39.  *  END I8255F07.C Source File
  40.  *  ----------------------------------------------------------------------
  41.  */
  42.